#define BTK05_CMD_BYTE1 0x0C
#define BTK05_CMD_BYTE2 0x00
#define BTK05_CMD_BYTE3 0xA1
#define BTK05_CMD_BYTE4 0x01
#define BTK05_CMD_BYTE6 0x00

#define BTK05_AT_ENPairMode   "AT+PAIR"//进入匹配模式
#define BTK05_AT_DeletePaired "AT+UNPLUG"//删除已匹配信息
#define BTK05_AT_SLEEPMODE    "AT+SLEEPMODE=1"//不休
#define BTK05_AT_RESET        "AT+RESET"

extern unsigned char RxBuffer_OK[10];
extern unsigned char RxBuffer_OK_Tail;
extern unsigned char ATReturnSuccessedFlag;

extern unsigned char BTK05_ATKeyDataPack[12];

extern unsigned char BTK05_ConsumerPack[8];

void BTK05_PairMode();
void BTK05_LowEnerageMode();
void BTK05_RESET();
void BTK05_DeleteConnectInfo();
void BTK05_Wake();
void BTK05_Sleep();
void USB_Mode(void);
void BLUETEETH_Mode(void);

void BTK05_UART_SendKeyData(unsigned char *KeyDataBuffer, unsigned char byte_lenth);

enum BTK05_StatusTypedef
{
	BTK_SLEEP = 0,
	BTK_WAKE = 1,
};

extern enum BTK05_StatusTypedef BTK05_Status;
